home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / gsar110.zip / COMPILE.TXT < prev    next >
Text File  |  1996-08-08  |  3KB  |  90 lines

  1. If you want gsar to compile under your favourite compiler
  2. and under your platform ( MSDOS or UNIX ) you should read 
  3. this section...
  4.  
  5. gsar was written using 99.99% ANSI C and compiles
  6. without any problems under the following compilers:
  7.  
  8. DOS platform:
  9.  
  10. . Zortech C/C++ 3.x
  11. . Turbo C 2.0
  12. . Borland C/C++ 1.0 & 3.0
  13. . Watcom C/C++ 10.0
  14. . Microsoft 6.0
  15. . DJGPP 2.0
  16. . Symantec C/C++ 7.2
  17.  
  18. UNIX platform:
  19.  
  20. All compilers were gcc (GNU).
  21.  
  22. . DecUnix OSF 3.2, Alpha
  23. . Linux 2.0.0, i386
  24. . ULTRIX 4.3, DecStation
  25. . SunOS 4.14, sun4m
  26. . Solaris 2.4, sparc
  27. . AIX 1.4, RS600
  28. . IRIX 5.3, mips
  29. . HP-UX A.09.05, A9000/750
  30.  
  31. (All trademarks are properties of their respective owners)
  32.  
  33. The compiler used for the development, testing and 
  34. debugging of gsar was the Zortech C++ compiler version 3.1
  35.  
  36. Since gsar is written to run both under UNIX and MSDOS I have
  37. included #ifdefs for easy portability. In the file gsar.h a simple
  38. test is made to see if we're being compiled with an MSDOS compiler
  39. and if we're not it's assumed that we're on a UNIX platform.
  40.  
  41. gsar does not make use of any floating point operations. To
  42. reduce the size of your executable do not link in any floating
  43. point libraries.
  44.  
  45. MSDOS notes.
  46.  
  47. gsar will compile and run in the small model of your compiler.
  48.  
  49. To make gsar as fast as possible the input streams are buffered 
  50. using setvbuf. However the Zortech compiler sets up stream buffers
  51. in it's startup code so setvbuf is not needed. This only applies
  52. to the small and tiny model.
  53.  
  54. I've done some simple speed tests between the different DOS 
  55. compilers. In all test cases the Zortech executable is the
  56. fastest. This is only noticable on large files, 5MB and upwards.
  57.  
  58. Most MSDOS compilers support the use of wildcards by 
  59. linking in a special object module. See the section below for details
  60.  
  61. Below is a list of command lines for use with various compilers:
  62.  
  63. - Turbo C ver 2.0
  64. tcc -ms gsar.c gsarbmg.c arg_func.c <path to file>wildargs.obj 
  65.  
  66. - Turbo C++ 1.0 
  67. tcc -ms gsar.c gsarbmg.c arg_func.c <path to file>wildargs.obj 
  68.  
  69. - Borland C++ 3.0
  70. bcc -ms gsar.c gsarbmg.c arg_func.c <path to file>wildargs.obj 
  71.  
  72. - Microsoft ver 6.0
  73. cl /AS gsar.c gsarbmg.c arg_func.c <path to file>setargv.obj /link /NOE 
  74.  
  75. - Zortech C/C++ ver 3.0, wildcards pulled in automatically!, integer library
  76. ztc -msi gsar.c gsarbmg.c arg_func.c 
  77.  
  78. - Symantec C/C++ ver 7.2, wildcards pulled in automatically!, integer library
  79. sc -msi gsar.c gsarbmg.c arg_func.c 
  80.  
  81. - Watcom ver 10.5, the /x is for name case sensitivity
  82. wcl386 /x gsar.c gsarbmg.c arg_func.c <path to file>wildargv.c 
  83.  
  84. - UN?X
  85. cc -o gsar gsar.c gsarbmg.c arg_func.c
  86.  
  87. - GCC/DJGPP
  88. gcc -o gsar gsar.c gsarbmg.c arg_func.c
  89.  
  90.